<div class="container">
<div id="main">
<div class="row">
<div class="span9">
<div class="cart_list">
<h3>Your shopping cart</h3>
<div class="cart-info" id="cart_content"><?php
if (!$this->cart->contents()):
echo 'You don\'t have any items yet.';
else:
?> <?php echo form_open('cart/update_cart'); ?>
<table width="100%" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<td class="quantity">Quantity</td>
			<td class="name">Project Name</td>
			<td class="price">Item Price</td>
			<td class="total">Sub-Total</td>
		</tr>
	</thead>
	<tbody>
	<?php $i = 1; ?>
	<?php foreach ($this->cart->contents() as $items): ?>

	<?php echo form_hidden('rowid[]', $items['rowid']); ?>
		<tr
		<?php
		if ($i & 1) {
			echo 'class="alt"';
		}
		?>>
			<td class="quantity"><?php echo form_input(array('name' => 'qty[]', 'value' => $items['qty'], 'maxlength' => '3', 'size' => '5')); ?>
			</td>

			<td class="name"><?php echo $items['name']; ?></td>

			<td class="price">&euro;<?php echo $this->cart->format_number($items['price']); ?></td>
			<td class="total">&euro;<?php echo $this->cart->format_number($items['subtotal']); ?></td>
		</tr>

		<?php $i++; ?>
		<?php endforeach; ?>
	</tbody>
</table>

<p><?php
echo form_submit('', 'Update your Cart', 'class="btn btn-primary arrow-right"');
echo anchor('cart/empty_cart', 'Empty Cart', 'class="empty"');
?></p>
<p><small>If the quantity is set to zero, the item will be removed from
the cart.</small></p>
<?php
echo form_close();
endif;
?></div>
<div class="cart-total">
<table id="total">
	<tbody>
		<tr>
			<td class="right"><b>Sub-Total:</b></td>
			<td>&euro;<?php echo $this->cart->format_number($this->cart->total()); ?></td>
		</tr>
	</tbody>
</table>
</div>
</div>
</div>
<div class="sidebar span3"><?php $this->load->view('helpers/widgets/our-agents.php'); ?>
<?php $this->load->view('helpers/widgets/ad.php'); ?></div>
</div>
</div>
</div>
